We typically want to have the full screen given to
the content, not the aspect-ratio preserving behavior
that newer OS X has.
https://bugzilla.gnome.org/show_bug.cgi?id=779383
inMaximizeTransition = NO;
}
+-(NSSize)window:(NSWindow *)window willUseFullScreenContentSize:(NSSize)proposedSize
+{
+ return [[window screen] frame].size;
+}
+
+-(void)windowWillEnterFullScreen:(NSNotification *)aNotification
+{
+ lastUnfullscreenFrame = [self frame];
+}
+
+-(void)windowWillExitFullScreen:(NSNotification *)aNotification
+{
+ [self setFrame:lastUnfullscreenFrame display:YES]
+}
+
@end
NSRect lastUnmaximizedFrame;
NSRect lastMaximizedFrame;
+ NSRect lastUnfullscreenFrame;
BOOL inMaximizeTransition;
}